package cn.kgc.boot.tcuser.service.impl;

import cn.kgc.boot.tcuser.entity.UploadFileComment;
import cn.kgc.boot.tcuser.mapper.UploadFileCommentMapper;
import cn.kgc.boot.tcuser.service.UploadFileCommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author XMF
 * @date 2021-07-30 15:06
 **/
@Service
public class UploadFileCommentServiceImpl implements UploadFileCommentService {

    @Autowired
    private UploadFileCommentMapper uploadFileCommentMapper;

    @Override
    public List<UploadFileComment> queryFileCommentByFileId(Integer fileId) {
        return uploadFileCommentMapper.queryFileCommentByFileId(fileId);
    }

    @Override
    public int insertComment(UploadFileComment uploadFileComment) {
        return uploadFileCommentMapper.insertComment(uploadFileComment);
    }
}
